﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class TaiKhoanDTO
    {
        private int id;
        private string tenTaiKhoan;
        private string matKhau;
        private string diaChi;
        private string email;
        private string phone;
        private int loaiTaiKhoan;

        #region pro 

        public int LoaiTaiKhoan
        {
            get { return loaiTaiKhoan; }
            set { loaiTaiKhoan = value; }
        }

        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }

        public string Email
        {
            get { return email; }
            set { email = value; }
        }

        public string DiaChi
        {
            get { return diaChi; }
            set { diaChi = value; }
        }

        public string MatKhau
        {
            get { return matKhau; }
            set { matKhau = value; }
        }

        public string TenTaiKhoan
        {
            get { return tenTaiKhoan; }
            set { tenTaiKhoan = value; }
        }

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        #endregion
        public TaiKhoanDTO()
        {
            loaiTaiKhoan = 1;
        }
        public TaiKhoanDTO(TaiKhoanDTO tk)
        {
            this.Id = tk.Id;
            this.TenTaiKhoan = tk.TenTaiKhoan;
            this.MatKhau = tk.MatKhau;
            this.DiaChi = tk.DiaChi;
            this.Email = tk.Email;
            this.Phone = tk.Phone;
            this.LoaiTaiKhoan = tk.LoaiTaiKhoan;
        }
    }
}
